﻿using System.Collections.Generic;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.ServiceProject;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IServiceProviderProductService
    {
        /// <summary>
        /// 获取单个服务商产品
        /// </summary>
        /// <param name="id">服务商产品ID</param>
        /// <returns></returns>
        ServiceProviderProduct LoadByID(int id);
        /// <summary>
        /// 判断是否存在
        /// </summary>
        /// <param name="serviceProviderId">服务商ID</param>
        /// <param name="thirdProductName">服务商产品名称</param>
        /// <param name="id">需要排除的服务商产品ID</param>
        /// <returns></returns>
        bool IsExist(int serviceProviderId, string thirdProductName, int id = 0);
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="model">过滤条件</param>
        /// <param name="total">返回总条数</param>
        /// <returns></returns>
        List<ServiceProviderProductViewModel> GetPagingList(ServiceProviderProductModel model, out int total);
    }
}
